package org.example.mall.admin.model.entity.manage;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 系统全局关联表
 * </p>
 *
 * @author hzq
 * @since 2022-01-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_relation")
@ApiModel(value = "SysRelation对象", description = "系统全局关联表")
public class SysRelation extends Model<SysRelation> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "来自")
    @TableField("from_id")
    private Integer fromId;

    @ApiModelProperty(value = "去往")
    @TableField("to_id")
    private Integer toId;

    @ApiModelProperty(value = "伪表名(SysRelationEnum.class)")
    @TableField("tb_name")
    private String tbName;

    @ApiModelProperty(value = "去往一级id")
    @TableField("to_one_id")
    private Integer toOneId;

    @ApiModelProperty(value = "去往二级id")
    @TableField("to_two_id")
    private Integer toTwoId;
}
